home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 27 / CDROM27.iso / share / progra / mai / Common Dialog, WinHelp - called with API < prev    next >
Encoding:
Text File  |  1997-08-03  |  1.3 KB  |  25 lines

  1. 'Description: Calls the "Help Dialog" without need for an OCX
  2.  
  3. 'Private Declare Function WinHelp Lib "user32" Alias "WinHelpA" (ByVal hwnd As Long, ByVal lpHelpFile As String, ByVal wCommand As Long, ByVal dwData As Long) As Long
  4.  
  5. 'Place the following code in under a command button or in a menu, etc...
  6.  
  7. Dim a
  8. a = WinHelp(Me.hwnd, "mai97.hlp", &H105, 0)
  9.  
  10. '&H3 - Contents
  11. '&H105 - Search
  12.  
  13. 'cdlHelpContext       &H1     Displays Help for a particular topic.
  14. 'cdlHelpQuit          &H2     Notifies the Help application that the specified Help file is no longer in use.
  15. 'cdlHelpIndex         &H3     Displays the index of the specified Help file.
  16. 'cdlHelpContents      &H3     Displays the contents topic in the current Help file.
  17. 'cdlHelpHelpOnHelp    &H4     Displays Help for using the Help application itself.
  18. 'cdlHelpSetIndex      &H5     Sets the current index for multi-index Help.
  19. 'cdlHelpSetContents   &H5     Designates a specific topic as the contents topic.
  20. 'cdlHelpContextPopup  &H8     Displays a topic identified by a context number.
  21. 'cdlHelpForceFile     &H9     Creates a Help file that displays text in only one font.
  22. 'cdlHelpKey           &H101   Displays Help for a particular keyword.
  23. 'cdlHelpCommandHelp   &H102   Displays Help for a particular command.
  24. 'cdlHelpPartialKey    &H105   Calls the search engine in Windows Help.
  25.